import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";

import BASIC_SSL from "@vitejs/plugin-basic-ssl";

// https://vite.dev/config/
export default defineConfig({
  base: process.env.NODE_ENV === "production" ? "./" : "/",
  plugins: [vue(), BASIC_SSL()],
  resolve: {
    alias: {
      "@": "/src",
    },
  },
  server: {
    port: 3000,
    host: true,
  },
});
